import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import axios from 'axios'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import api from './config/api' // 引入axios实例
import ElementPlusIcons from './plugins/element-plus-icons.js'; // 引入全局注册图标插件
import Particles from 'particles.vue3'; // 引入全局注册粒子插件


import App from './App.vue'
import router from './router'
import store from './store'

const app = createApp(App)

app.use(ElementPlus)
app.use(ElementPlusIcons);


 // 将axios实例挂载到Vue原型上
app.config.globalProperties.$axios = axios;
axios.defaults.baseURL = 'http://localhost:8080'


app.use(createPinia())
app.use(router)
app.use(store)
app.use(Particles)

app.mount('#app')

